﻿using SuperFrame.Charts.Modes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace SuperFrame.Charts
{
    /// <summary>
    /// PhaseInfo.xaml 的交互逻辑
    /// </summary>
    public partial class PhaseInfo : UserControl
    {
        public PhaseInfo()
        {
            InitializeComponent();
            this.DataContext = this;
        }


        /// <summary>
        /// 字体大小
        /// </summary>
        public double FontSizeValue
        {
            get { return (double)GetValue(FontSizeValueProperty); }
            set { SetValue(FontSizeValueProperty, value); }
        }

        // Using a DependencyProperty as the backing store for FontSize.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty FontSizeValueProperty =
            DependencyProperty.Register("FontSizeValue", typeof(double), typeof(PhaseInfo), new PropertyMetadata(14d));



        public new Brush Foreground
        {
            get { return (Brush)GetValue(ForegroundProperty); }
            set { SetValue(ForegroundProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ForegroundValue.  This enables animation, styling, binding, etc...
        public new  static readonly DependencyProperty ForegroundProperty =
            DependencyProperty.Register("Foreground", typeof(Brush), typeof(PhaseInfo), new PropertyMetadata(Brushes.Gray));

        

        public Brush AForeground
        {
            get { return (Brush)GetValue(AForegroundProperty); }
            set { SetValue(AForegroundProperty, value); }
        }

        // Using a DependencyProperty as the backing store for AForeground.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty AForegroundProperty =
            DependencyProperty.Register("AForeground", typeof(Brush), typeof(PhaseInfo), new PropertyMetadata(Brushes.Yellow));



        public Brush BForeground
        {
            get { return (Brush)GetValue(BForegroundProperty); }
            set { SetValue(BForegroundProperty, value); }
        }

        // Using a DependencyProperty as the backing store for BForeground.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty BForegroundProperty =
            DependencyProperty.Register("BForeground", typeof(Brush), typeof(PhaseInfo), new PropertyMetadata(Brushes.Blue));



        public Brush CForeground
        {
            get { return (Brush)GetValue(CForegroundProperty); }
            set { SetValue(CForegroundProperty, value); }
        }

        // Using a DependencyProperty as the backing store for CForeground.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty CForegroundProperty =
            DependencyProperty.Register("CForeground", typeof(Brush), typeof(PhaseInfo), new PropertyMetadata(Brushes.Red));


        private PhaseInfoMode eleInfo=new PhaseInfoMode();
        /// <summary>
        ///数据源实体
        /// </summary>
        public PhaseInfoMode EleInfo
        {
            get { return eleInfo; }
            set { eleInfo = value; }
        }
    }
}
